// 通用的JS工具封装
var _wm = require('util/wm.js')

var _cart = {
    // 获取购物车的数量
    getCartCount: function(resolve, reject){
        _wm.request({
            url: _wm.getServerUrl('/cart/get_cart_product_count.do'),
            success: resolve,
            error: reject
        })
    }
}

module.exports = _cart